Autumn 2025

Learn to count

We have all your bases covered

The plan for today

  • History of numbers
  • Base 10
  • History of Hindu-Arabic Numbers
  • Other base systems
  • Maths in base 12

Objectives

  • Gain an awareness of the history of numbers
  • State the difference between positional and non-positional number systems, and the confusion which can arise in non-positional systems
  • Express numbers in any base in a convenient format
  • Perform calculations with numbers in other bases

History

  • Likely began as a way of counting items in the environment.
  • Humans came up with words and symbols to answer “how many?” or “how much?”

History

Lebombo bone
  • 44,200-43,000 years old
  • found in South Africa/Mozambique.
  • Earliest example of a counting stick (i.e. not purely decorative)

History

Ishango Bone
  • ~20,000 years old

  • found in the Democratic Republic of Congo

  • possibly contains prime numbers and/or basic adding encoded as lines with dividers,

    although we don’t know for certain.

prime numbers, base 60

History

Contextual use of numbers

  • Appeared around 7,000 years ago (pre 5,000 BCE)
  • From in Mesopotamia (Iraq)
  • Tracked the movement of goods being represented a debits and credits encoded on clay
  • Marks on the tablet corresponded to small tokens found nearby
  • suggesting that these tokens could be carried between different storehouses as a form of checking

Counting in other species

  • Some Pacific tree frogs use counting to choose a mate.
  • Two males compete for a mate.
    • The first frog makes two ‘rih’ sounds,
    • The second frog makes three ‘rih’ sounds,
    • and so on
  • each frog tries to out-do the other by making the most sounds
  • Scientist monitoring the frogs’ brains found certain neurons fired, counting each sound
[https://www.science.org/content/article/froggy-went-countin]

Hindu-arabic numerals

  • The most commonly used system for representing numbers
  • Positional system: the position of a number in the sequence represents its magnitude.
  • Indian mathematicians used the same symbol in different places to represent higher numbers, rather than adding more symbols.
  • Chinese, Mayan, and Babylonians (among others) developed a positional system independently

Base 10

  • We are used to counting using Hindu-Arabic numbers:

    \(1, 2, 3, …, 9, 10, 11, 12, …, 103, 2476, \ldots\)

  • Numbers can be represented using a positional table (based on Vederic logic).

Multiple 0 1 2 3 4 5 6 7 8 9
1 0 1 2 3 4 5 6 7 8 9
  • Each row represents one digit (one symbol)
  • Once we run out of symbols, we add another row…

For example, the number 14 can be expressed as:

Multiple 0 1 2 3 4 5 6 7 8 9
10 1
1 4

Babylonians

  • Wrote with a tablet and stylus
  • Their numbers were made by stamping the tablet with the stylus

Hebrew

  • Hebrew letters and numbers use the same symbols

Egyptian

A non-positional system

  • Roman numerals use symbols
    1. I
    2. V
    3. X
    4. C
    5. D
  • Then numbers are groups of symbols:
    • 3 = III
    • 9 = IX
    • 11 = XI
    • 518 = CXVIII

Confusing

  • In standard notation 18 is XVIII (10, 5, and 3 1s)
  • but the Roman 18th Legion (of Teuton Forest fame) wrote their number as XIIX!
  • And is 499:
    • CDXCIX (CD = 500 - 100, XC = 100 - 10, IX = 10 - 1)
    • LDVLIV (LD = 500 - 50, VL = 50 - 5, IV = 5 - 1)
    • XDIX (XD = 500 - 10, IX = 10 - 1) (10 before 50, 1 before 10)
    • VDIV (VD = 500 - 5, IV = 5 - 1)
    • ID (500 - 1)

All your bases covered

  • There are as many bases as there are symbols.

  • We will express them using the same positional table format.

  • But first…

A very brief history of Hindu-Arabic numbers

  • Originate from the Vedric period of Indian history (1500–500 BCE)

  • [Taittiriya Samhita] used words to represent powers of 10

    (e.g. dasa = 101, shatha = 102, sahasra = 103)

  • The big innovation was to include 0 as a number, not just a placeholder.

  • Accredited to Brahmagupta (c 598CE - c 668CE) though evidence points to it being used in the Bakhshali manuscript (224–383 CE or 885–993 CE)

The hindu-arabic numbers

  • Base 10, positional notation in powers of 10, and 0.

  • Adopted by Abbasid Caliphate under Caliph al-Mansur through sponsorship of the translation movement.

  • Move to translate secular books from Greek, Persian, Syriac, and many other languages into Arabic

  • Formed part of the “Islamic Golden Age”

  • Al-Khwārizmī and Al-Kindi were strong proponents of this system
  • Al-Khwārizmī (c 780 - c 847)
    • Persian mathematician and polymath
    • Book Kitāb al-ḥisāb al-hindī (‘Book of Indian computation’) used this system
  • Al-Kindi (c 801 - c 873)
    • known as the “father of Arabic philosophy”

Map showing the Abbhasid Kaliphate

  • Appeared in Europe in the Codex Vigilanus (976 CE)

  • Promoted by mathematicians such as Fibonacci (c 1170 – c 1245)

  • Became more popular after the invention of the printing press (post 1482 CE)

    • Made the process of printing easier
    • Conjectured that this is also why \(x\) was chosen for the unknown variable

“It is India that gave us the ingenious method of expressing all numbers by the means of ten symbols, each1 symbol receiving a value of position, as well as an absolute value; a profound and important idea which appears so simple to us now that we ignore its true merit, but its very simplicity, the great ease which it has lent to all computations, puts our arithmetic in the first rank of useful inventions, and we shall appreciate the grandeur of this achievement when we remember that it escaped the genius of Archimedes and Apollonius, two of the greatest minds produced by antiquity.”

– Pierre-Simon Laplace (1749–1827)

0 “is big. You just won’t believe how vastly, hugely, mind-bogglingly big it is. I mean, you may think it’s a long way down the road to the chemist’s, but that’s just peanuts” compared to 0 (Douglas Adams, The Hitchhiker’s Guide to the Galaxy talking about space)

  • A revolutionary idea, relying on a philosophy which permits the idea of nothingness

  • Modern mathematics would not be possible without zero

  • Neither would mathematics with computers.

Quiz

Other than base 10, which other bases are used in daily life?

  • Base 4: genes
  • 5: tally
  • 12, 60 = 5 times 12: time
  • Angles in a circle: base 360, or 2 pi

Time

  • 60 seconds in a minute
  • 60 minutes in an hour (often counted in multiples of 5)
  • 24 hours in a day (or two groups of 12)
  • 7 days in a week
  • 28,29,30,31 days in a month
  • 4 + d days for d from 0 to 3 weeks in a month
  • 12 months in a year
  • 52 + d days for d = 1 or d = 2, weeks in a year

Useful bases

  • Base 10 (humans love base 10 so much that some early computers were in base 10)

  • Base 2 (Binary): how processors work, how data is stored

  • Base 8: common way of representing a byte (8 bits)

  • Base 16: another common representation for binary encoded information, e.g., colours

  • Base 12 – Ed’s favourite… let’s see if he can convince us!

Multiplier 0 1
\(256 = 2^8\) 0
\(128 = 2^7\) 1
\(64 = 2^6\) 0
\(32 = 2^5\) 1
\(16 = 2^4\) 0
\(8 = 2^3\) 0
\(4 = 2^2\) 1
\(2 = 2^1\) 1
\(1 = 2^0\) 0

Position table for binary

  • Each row is a power of two.
  • Represent the number 010100110
    • \(0 \cdot 256 +\)
    • \(1 \cdot 128 +\)
    • \(0 \cdot 64 +\)
    • \(1 \cdot 32 +\)
    • \(0 \cdot 16 +\)
    • \(0 \cdot 8 +\)
    • \(1 \cdot 4 +\)
    • \(1 \cdot 2 +\)
    • \(0 \cdot 1\)

Base 8

Multiplier 0 1 2 3 4 5 6 7
4096 1
512 3
64 0
8 5
1 7

Convert the number \(13057\) from base \(8\) into base \(10\).

Extra symbols

  • To encode base 12, we need two additional symbols
  • We can’t use base 10 symbols 10 and 11
  • Is 111 in base 12 equal to
    • \(1 \cdot 144 + 1 \cdot 12 + 1 \cdot 1\)
    • \(1 \cdot 12 + 11 \cdot 1\)
    • \(11 \cdot 12 + 1 \cdot 1\)
  • We will let
    • \(10\) in base 10 be A
    • and \(11\) be B

Extra symbols

  • Likewise, we need 6 extra symbols for base 16:

    0 1 2 3 4 5 6 7 8 9 A B C D E F

  • In general, we’ll use capital letters for additional symbols, until we run out of those…

Arithmetic in other bases

Now let’s mock the one per cent

Steve Jobbs

  • Eliminated all philanthropic programs (charity) at Apple…

  • …and never reinstated them

  • Promised Steve Wozniak a 50/50 split if Woz optimised Breakout.

  • Jobs was paid $5,000 (~$27k) and gave Woz $350 (~$2K)

Elon Musk

  • Hyperloop requires a vacuum to work

  • Requires 2 million cubic meters of vacuum.

  • Current largest is 30,000 cubic meters (NASA) – 66 times less…

  • A crack would cause air to rush in at the speed of sound.

  • This would kill everyone inside in a massive emplosion.

  • Cracks result from heat expansion.

Bill Gates

Gave a grant to

  • Gave a grant to 374Water:

    develop a toilet which will solve the water crisis in Africa.

  • The toilet has a section that is 374°C and 3,210 PSI

  • The toilet has a section that is 374°C and 3,210 PSI

    Normal atmospheric pressure is around 14.7 PSI

  • Over-pressure of 5 PSI results in 100% fatalities.

Lab Task

  • crate a procedure for addnig two numbers in base 12,

  • …but your computer can only get the next symbol, e.g.,

    next(3) = 4, next(9) = A, next(B) = 0

  • You can store data in variables which contain one digit.

  • You can assign the value of a variable to a fixed symbol, or the value of another variable, (b = next(c))

  • You can jump (e.g., go to line 3)

  • You can check equality (e.g., a == 0 or b == c)

  • Start by adding two one-digit numbers.

    • Done? Extend to two-digit numbers and then more.

    • Finally, implement multiplication.

  • Tools like pseudo-code or flowcharts might be useful.